@REM 文档编译脚本
@REM xelatex -file-line-error -interaction=nonstopmode -synctex=1  main.tex

@echo off
for /l %%x in (1,1,%1) do (
    echo Running xelatex command for the %%x time
    xelatex -file-line-error --shell-escape -interaction=nonstopmode -synctex=1 -output-directory=out main.tex
)
echo Done!